﻿<phone:PhoneApplicationPage 
    x:Class="Groovy_IM.SettingsPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False" OrientationChanged="PhoneApplicationPage_OrientationChanged">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <controls:Pivot Title="Groovy IM" x:Name="pivSwitch">
            <!--"Appearance" Item One-->
            <controls:PivotItem Header="Appearance">
                <ListBox x:Name="Appearance" Margin="0,0,-12,0">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <StackPanel Width="455" x:Name="appWidth">
                            <toolkit:ToggleSwitch Header="System Tray Bar" Name="SystemTrayBarSwitch" Checked="SystemTrayBarSwitch_Checked" Unchecked="SystemTrayBarSwitch_Unchecked" />
                            <toolkit:ToggleSwitch Header="Allow Landscape" Name="Landscape" Checked="Landscape_Checked" Unchecked="Landscape_Unchecked" />
                        </StackPanel>
                    </StackPanel>
                </ListBox>
            </controls:PivotItem>
            
            <!--"Contacts" Item Two-->
            <controls:PivotItem Header="Contacts">
                <ListBox x:Name="buddyList" Margin="0,0,-12,0">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <StackPanel Width="455" x:Name="buddyWidth">
                            <toolkit:ToggleSwitch Header="Alias / Meta Contacts" Name="useBuddyMeta" />
                            <toolkit:ToggleSwitch Header="Seperate By Protocols" Name="seperateProtocols" />
                            <toolkit:ToggleSwitch Header="Show Blocked Contacts" Name="hideBlockedBuddies" />
                            <toolkit:ToggleSwitch Header="Show Buddy Icons" Name="UserIcons" />
                            <toolkit:ToggleSwitch Header="Show Buddy Status" Name="UserStatus" />
                            <toolkit:ToggleSwitch Header="Show Empty Groups" Name="showEmptyGroups" />
                            <toolkit:ToggleSwitch Header="Show Protocol Icons" Name="showProtocolIcons" />
                            <toolkit:ToggleSwitch Header="Show Offline Contacts" Name="hideOfflineBuddies" />
                            <toolkit:ToggleSwitch Header="Sort By Display Name" Name="sortByDisplay" />
                            <toolkit:ToggleSwitch Header="Sort By User Status" Name="sortByStatus" />
                            <toolkit:ToggleSwitch Header="Use Groups" Name="useGroups" />
                        </StackPanel>
                    </StackPanel>
                </ListBox>
            </controls:PivotItem>

            <!--"Chats" Item Three-->
            <controls:PivotItem Header="Chats">
                <ListBox x:Name="Messaging" Margin="0,0,-12,0">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <StackPanel Width="455" x:Name="msgWidth">
                            <Slider Maximum="5" SmallChange="1" x:Name="previewSelector" Minimum="0" Value="0" />
                            <TextBlock Text="Peview One Message" x:Name="previewName" FontSize="{StaticResource PhoneFontSizeNormal}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                            <toolkit:ToggleSwitch Header="Meta Messaging" Name="useChatMeta" />
                            <toolkit:ToggleSwitch Header="Use Emoticons" Name="useEmoticons" />
                            <toolkit:ToggleSwitch Header="Log Messages" Name="logMessages" />
                            <toolkit:ToggleSwitch Header="Show Last Message" Name="lastMessage" />
                            <toolkit:ToggleSwitch Header="Allow Quick Reply" Name="quickReply" />
                            <toolkit:ToggleSwitch Header="Show Buddy Icons" Name="buddyIcons" />
                            <toolkit:ToggleSwitch Header="Show Buddy Status" Name="buddyStatus" />
                        </StackPanel>
                    </StackPanel>
                </ListBox>
            </controls:PivotItem>

            <!--"Notifications" Item Four-->
            <controls:PivotItem Header="Notifications">
                <ListBox x:Name="Notifications" Margin="0,0,-12,0">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <StackPanel Width="455" x:Name="notifyWidth">
                            <TextBlock Text="Vibrate On" HorizontalAlignment="Center" FontSize="{StaticResource PhoneFontSizeLarge}" />
                            <toolkit:ToggleSwitch Header="Attention Received" />
                            <toolkit:ToggleSwitch Header="Chat Message Received" />
                            <toolkit:ToggleSwitch Header="Contact Logged In" />
                            <toolkit:ToggleSwitch Header="Contact Logged Out" />
                            <toolkit:ToggleSwitch Header="Instant Message Received" />                            
                            <toolkit:ToggleSwitch Header="Person Enters Chat" />
                            <toolkit:ToggleSwitch Header="Person Leaves Chat" />
                            <toolkit:ToggleSwitch Header="Someone says your alias" />
                            <toolkit:ToggleSwitch Header="Someone says your username" />
                            <TextBlock Text="Sound On" HorizontalAlignment="Center" FontSize="{StaticResource PhoneFontSizeLarge}" />
                            <toolkit:ToggleSwitch Header="Instant Message Received" />
                            <toolkit:ToggleSwitch Header="Chat Message Received" />
                            <toolkit:ToggleSwitch Header="Contact Logged In" />
                            <toolkit:ToggleSwitch Header="Contact Logged Out" />
                            <toolkit:ToggleSwitch Header="Person Enters Chat" />
                            <toolkit:ToggleSwitch Header="Person Leaves Chat" />
                            <toolkit:ToggleSwitch Header="Someone says your username" />
                            <toolkit:ToggleSwitch Header="Someone says your alias" />
                            <toolkit:ToggleSwitch Header="Attention Received" />
                        </StackPanel>
                    </StackPanel>
                </ListBox>
            </controls:PivotItem>

            <!--"Push Notifications" Item Five-->
            <controls:PivotItem Header="Push settings">
                <ListBox x:Name="pushNotify" Margin="0,0,-12,0">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <StackPanel Width="455" x:Name="pushWidth">
                            <toolkit:ToggleSwitch Header="Keep Connected" />
                            <toolkit:ToggleSwitch Header="Notify me via E-Mail" />
                            <toolkit:ToggleSwitch Header="Notify me via SMS" />
                            <toolkit:ToggleSwitch Header="Auto-Reply when in Push Mode" />
                            <toolkit:ToggleSwitch Header="Tile Notifications" />
                            <toolkit:ToggleSwitch Header="Toast Notifications" />
                        </StackPanel>
                    </StackPanel>
                </ListBox>
            </controls:PivotItem>
            
            <!--"Advanced" Item Six-->
            <controls:PivotItem Header="Advanced">
                <ListBox x:Name="Advaced" Margin="0,0,-12,0">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <StackPanel Width="455" x:Name="advWidth">
                            <toolkit:ToggleSwitch Header="Run under locked screen" x:Name="runLocked" Checked="runLocked_Checked" Unchecked="runLocked_Unchecked" />
                            <toolkit:ToggleSwitch Header="Confirmination on exit" x:Name="confirmExit" Checked="confirmExit_Checked" Unchecked="confirmExit_Unchecked"/>
                        </StackPanel>
                    </StackPanel>
                </ListBox>
            </controls:PivotItem>

            <!--"About" Item Seven-->
            <controls:PivotItem Header="About">
                <ListBox x:Name="About" Margin="0,0,-12,0">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,17">
                        <StackPanel Width="455" x:Name="abWidth">
                            <Image Source="/Images/App/white_flower.png" Width="128" Height="128"/>
                            <TextBlock Text="Groovy IM for Windows Phone" FontSize="{StaticResource PhoneFontSizeLarge}" Margin="0,20,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" />
                            <TextBlock Text="Version 1.0" FontSize="{StaticResource PhoneFontSizeNormal}" Margin="0,30,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" />
                            <Button Tap="Button_Tap" x:Name="tellFriend" Tag="0" Content="Tell a Friend" Width="455" Margin="0,20,0,0" />
                            <Button Tap="Button_Tap" x:Name="facebook" Tag="1" Content="Facebook" Width="235" Margin="0,10,0,0" HorizontalAlignment="Left" />
                            <Button Tap="Button_Tap" x:Name="twitter" Tag="2" Content="Twitter" Width="235" Margin="0,-73,0,0" HorizontalAlignment="Right" />
                            <TextBlock Text="Copyright 2011 MyKL, L.L.C. All Rights Reserved." FontSize="{StaticResource PhoneFontSizeNormal}" Margin="0,50,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </StackPanel>
                    </StackPanel>
                </ListBox>
            </controls:PivotItem>
        </controls:Pivot>
    </Grid>

</phone:PhoneApplicationPage>